set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(dependencies
    esp_timer 
    json 
    esp_http_server 
    mqtt 
    nvs_flash 
    esp_wifi 
    led_manager 
    esp_http_client 
    spiffs
    esp_coex  
    wifi_manager 
    bx_network_client 
    lua_cjson
    esp_https_ota
    app_update
)

idf_component_register(SRCS "app_main.cpp" "Profile.cpp" "RemoteConfig.cpp" "OTAUpdater.cpp"
                      INCLUDE_DIRS "."
                      REQUIRES  ${dependencies})
add_compile_definitions(
    FW_VERSION=\"${PROJECT_VERSION}\"
)